home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Programmer Disk
/
The Programmer Disk (Microforum).iso
/
xpro
/
c4
/
pro2
/
1n05028b
< prev
next >
Wrap
Text File
|
1990-07-04
|
1KB
|
36 lines
;// DOTBOX1.ASM
DOSSEG ; Init EXE file
.MODEL SMALL
.STACK 100h
.DATA
row DB ?
column DB ?
.CODE
start:
mov [row],5 ; 01 set row to five
mov CX,12 ; 02 write 12 rows of dots
row_loop: ; 03
push CX ; 04 save row loop counter
mov [column],5 ; 05 set column to 5
mov AH,2 ; 06 move cursor function
mov BH,0 ; 07 on page 0 here
mov DH,[row] ; 08 to row value
mov DL,5 ; 09 column 5
int 10h ; 10 move cursor via BIOS
mov CX,56 ; 11 write 56 dots via BIOS
column_loop: ; 12
mov AH,0Eh ; 13 write char in teletype fashion
mov BH,0 ; 14 on page 0 here
mov AL,'.' ; 15 the '.' character
int 10h ; 16 via the BIOS
loop column_loop ; 17 return for next character
pop CX ; 18 restore row counter
inc [row] ; 19 go to next row
loop row_loop ; 20 return for next row
mov AH,4ch ; exit to DOS
int 21h
END start